#define  _CRT_SECURE_NO_WARNINGS 1
#include "SList.h"

void Test1()
{
	SLT* phead = NULL;
	SLPushBack(&phead, 2);
	SLPushBack(&phead, 3);
	SLPushBack(&phead, 4);
	SLPushBack(&phead, 5);
	SLPushBack(&phead, 8);
	SLPrint(phead);

	SLPushFront(&phead, 1);
	SLPushFront(&phead, 0);
	SLPushFront(&phead, -1);
	SLPrint(phead);

	SLT* pos = SLFind(phead, 5);
	if (pos)
	{
		SLInsertAfter(pos, 6);
	}
	SLPrint(phead);

	SLDestroy(&phead);
}

int main()
{
	Test1();
	return 0;
}